package com.bicon.botu.mall.order.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.bicon.botu.core.base.repository.mybatis.UuidBaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @auther 裴志鹏
 * @date 2017/7/20 10:03
 */
@Data
@TableName("goods_order")
public class GoodsOrder extends UuidBaseEntity<GoodsOrder> {

	/**
	 * 订单号
	 */
	@TableField("order_no")
	private String orderNo;

	/**
	 * 用户id
	 */
	@TableField("user_id")
	private String userId;

	/**
	 * 订单状态
	 */
	private String status;

	/**
	 * 订单总金额
	 */
	@TableField("order_amount")
	private BigDecimal orderAmount;

	/**
	 * 实际支付金额
	 */
	@TableField("actual_amount")
	private BigDecimal actualAmount;

	/**
	 * 支付方式(1-支付宝，2-微信)
	 */
	@TableField("pay_mode")
	private Integer payMode;

	/**
	 * 订单支付时间
	 */
	@TableField("pay_time")
	private Date payTime;

	/**
	 * 订单来源(1-android,2-IOS)
	 */
	@TableField("source_code")
	private Integer sourceCode;

	/**
	 * 优惠券id
	 */
	@TableField("promotions_discount_id")
	private String promotionsDiscountId;

	/**
	 * 配送方式
	 */
	@TableField("delivery_mode")
	private String deliveryMode;

	/**
	 * 邮费
	 */
	@TableField("express_amount")
	private BigDecimal expressAmount;

	/**
	 * 取消订单原因
	 */
	@TableField("cancel_reason")
	private String cancelReason;

	/**
	 * 买家留言
	 */
	private String remark;

	/**
	 * 确认收货时间
	 */
	@TableField("confirm_date")
	private Date confirmDate;
}
